package com.cdtye.itps.cms.controller.catgoryreport;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cdtye.common.webcore.base.BaseController;
import com.cdtye.common.webcore.web.AjaxJson;
import com.cdtye.itps.cms.dao.categoryreport.vo.JcjcCategoryReportVo;
import com.cdtye.itps.cms.service.categoryreport.JcjcCategoryReportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 1c超限数据-缺陷报表 前端控制器
 * @author Jchen
 * @date 2021-09-24
 */
@Api(tags="1c超限数据-缺陷报表接口")
@RestController
@RequestMapping("/JcjcCategoryReports")
public class JcjcCategoryReportController extends BaseController {

    @Autowired
    private JcjcCategoryReportService modelService;


    @ApiOperation(value = "分页查询")
    @GetMapping(value = "/listPage")
    public AjaxJson<IPage<Map<String,Object>>> listPage(JcjcCategoryReportVo vo){
        IPage<Map<String,Object>> result = modelService.listPage(vo);
        return success(result);
    }
}
